<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Caffe: include/caffe/net.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Caffe
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_4b7f3da7c7b4301d805dae0326fb91b7.html">caffe</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">net.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef CAFFE_NET_HPP_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define CAFFE_NET_HPP_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;caffe/blob.hpp&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;caffe/common.hpp&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;caffe/layer.hpp&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;caffe/proto/caffe.pb.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecaffe.html">caffe</a> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Dtype&gt;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html">   24</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcaffe_1_1Net.html">Net</a> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classcaffe_1_1Net.html">Net</a>(<span class="keyword">const</span> NetParameter&amp; param);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classcaffe_1_1Net.html">Net</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; param_file, Phase <a class="code" href="classcaffe_1_1Net.html#a9418aee447ff6e847fd1a5e7be3d7a44">phase</a>,</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">int</span> level = 0, <span class="keyword">const</span> vector&lt;string&gt;* stages = NULL);</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classcaffe_1_1Net.html">Net</a>() {}</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#ae9fcfaabc89165d6c0cb4b14b4c6b584">Init</a>(<span class="keyword">const</span> NetParameter&amp; param);</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a6f6cf9d40637f7576828d856bb1b1826">Forward</a>(Dtype* loss = NULL);</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a12f8c6cf9f453cdbc9fa8149986303c6">   40</a></span>&#160;  <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a12f8c6cf9f453cdbc9fa8149986303c6">ForwardPrefilled</a>(Dtype* loss = NULL) {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    LOG_EVERY_N(WARNING, 1000) &lt;&lt; <span class="stringliteral">&quot;DEPRECATED: ForwardPrefilled() &quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        &lt;&lt; <span class="stringliteral">&quot;will be removed in a future version. Use Forward().&quot;</span>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#a6f6cf9d40637f7576828d856bb1b1826">Forward</a>(loss);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  Dtype <a class="code" href="classcaffe_1_1Net.html#ae5354c03371d4cb7b18988561790e676">ForwardFromTo</a>(<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> end);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  Dtype ForwardFrom(<span class="keywordtype">int</span> start);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  Dtype ForwardTo(<span class="keywordtype">int</span> end);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a6f6cf9d40637f7576828d856bb1b1826">Forward</a>(<span class="keyword">const</span> vector&lt;<a class="code" href="classcaffe_1_1Blob.html">Blob&lt;Dtype&gt;</a>* &gt; &amp; bottom,</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;      Dtype* loss = NULL);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a3d251c397f812a6d8e162db3a82bb198">ClearParamDiffs</a>();</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a7a1a6d17347106dd1284b1b6d28cb4e9">Backward</a>();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordtype">void</span> BackwardFromTo(<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> end);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="keywordtype">void</span> BackwardFrom(<span class="keywordtype">int</span> start);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  <span class="keywordtype">void</span> BackwardTo(<span class="keywordtype">int</span> end);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a8417af82aa83be45d39aab735bdead1d">Reshape</a>();</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  Dtype ForwardBackward() {</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    Dtype loss;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="classcaffe_1_1Net.html#a6f6cf9d40637f7576828d856bb1b1826">Forward</a>(&amp;loss);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="classcaffe_1_1Net.html#a7a1a6d17347106dd1284b1b6d28cb4e9">Backward</a>();</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">return</span> loss;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a8a2544cefc59d6cbe1bf634f5d5be1c5">Update</a>();</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a4850fdb3eea1b04c97642546c0dcccf7">ShareWeights</a>();</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a3661ca5f30bf8e731cb54cfc3c320023">ShareTrainedLayersWith</a>(<span class="keyword">const</span> <a class="code" href="classcaffe_1_1Net.html">Net</a>* other);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <span class="comment">// For an already initialized net, CopyTrainedLayersFrom() copies the already</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="comment">// trained layers from another net parameter instance.</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a4ac2b69748470f54d530bc5dfa05b9c3">CopyTrainedLayersFrom</a>(<span class="keyword">const</span> NetParameter&amp; param);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a4ac2b69748470f54d530bc5dfa05b9c3">CopyTrainedLayersFrom</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> trained_filename);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="keywordtype">void</span> CopyTrainedLayersFromBinaryProto(<span class="keyword">const</span> <span class="keywordtype">string</span> trained_filename);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="keywordtype">void</span> CopyTrainedLayersFromHDF5(<span class="keyword">const</span> <span class="keywordtype">string</span> trained_filename);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a6ce42e3be6f7b495fe2fea85db2e99f8">ToProto</a>(NetParameter* param, <span class="keywordtype">bool</span> write_diff = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#ad3ac317bbc872bc6ed48d19f4d986ecc">ToHDF5</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; filename, <span class="keywordtype">bool</span> write_diff = <span class="keyword">false</span>) <span class="keyword">const</span>;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a521c084f91eefc041bd53f30f1cc1097">  123</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; <a class="code" href="classcaffe_1_1Net.html#a521c084f91eefc041bd53f30f1cc1097">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#aef7021f31e355ab8f8991755125f6b2b">name_</a>; }</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#aa550ba424fc7b90f2ccbbaa175c1ec18">  125</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;string&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#aa550ba424fc7b90f2ccbbaa175c1ec18">layer_names</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> layer_names_; }</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#aeaf1e942f1552b9c48bd9e834ede20e6">  127</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;string&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#aeaf1e942f1552b9c48bd9e834ede20e6">blob_names</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> blob_names_; }</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ab64573aa9187fb7540825d9338807a79">  129</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;shared_ptr&lt;Blob&lt;Dtype&gt; &gt; &gt;&amp; <a class="code" href="classcaffe_1_1Net.html#ab64573aa9187fb7540825d9338807a79">blobs</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#ab033c0574fcbf1e67e22b9682677c64d">blobs_</a>;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  }</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a174e8bb96b67f423f8c405dac2334a5a">  133</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;shared_ptr&lt;Layer&lt;Dtype&gt; &gt; &gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a174e8bb96b67f423f8c405dac2334a5a">layers</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#ab9e30392aa01dcf182d1a5cbd34ec45e">layers_</a>;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  }</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a9418aee447ff6e847fd1a5e7be3d7a44">  137</a></span>&#160;  <span class="keyword">inline</span> Phase <a class="code" href="classcaffe_1_1Net.html#a9418aee447ff6e847fd1a5e7be3d7a44">phase</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#a1fe921a602b4f96602702a13ad605693">phase_</a>; }</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a25c25c31ddf7a78c7dfded318798764c">  142</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;vector&lt;Blob&lt;Dtype&gt;*&gt; &gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a25c25c31ddf7a78c7dfded318798764c">bottom_vecs</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#ac5bf2007047f749d9d111b0dfa220afc">bottom_vecs_</a>;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  }</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ad9aace0b6b268d391101f0ce31be9fd1">  149</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;vector&lt;Blob&lt;Dtype&gt;*&gt; &gt;&amp; <a class="code" href="classcaffe_1_1Net.html#ad9aace0b6b268d391101f0ce31be9fd1">top_vecs</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#aa834096a02382d9a881bf33694e72564">top_vecs_</a>;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  }</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a8e42b5eba7886385d2d4b6f457314968">  153</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;int&gt; &amp; <a class="code" href="classcaffe_1_1Net.html#a8e42b5eba7886385d2d4b6f457314968">top_ids</a>(<span class="keywordtype">int</span> i)<span class="keyword"> const </span>{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    CHECK_GE(i, 0) &lt;&lt; <span class="stringliteral">&quot;Invalid layer id&quot;</span>;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    CHECK_LT(i, top_id_vecs_.size()) &lt;&lt; <span class="stringliteral">&quot;Invalid layer id&quot;</span>;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordflow">return</span> top_id_vecs_[i];</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  }</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a7ccd2bf8a1684171b7d7603cf20c0251">  159</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;int&gt; &amp; <a class="code" href="classcaffe_1_1Net.html#a7ccd2bf8a1684171b7d7603cf20c0251">bottom_ids</a>(<span class="keywordtype">int</span> i)<span class="keyword"> const </span>{</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    CHECK_GE(i, 0) &lt;&lt; <span class="stringliteral">&quot;Invalid layer id&quot;</span>;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    CHECK_LT(i, bottom_id_vecs_.size()) &lt;&lt; <span class="stringliteral">&quot;Invalid layer id&quot;</span>;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordflow">return</span> bottom_id_vecs_[i];</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  }</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;vector&lt;bool&gt; &gt;&amp; bottom_need_backward()<span class="keyword"> const </span>{</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">return</span> bottom_need_backward_;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  }</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;Dtype&gt;&amp; blob_loss_weights()<span class="keyword"> const </span>{</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#a3eef6ff47640210c6d8d6affb1fd86f8">blob_loss_weights_</a>;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;bool&gt;&amp; layer_need_backward()<span class="keyword"> const </span>{</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordflow">return</span> layer_need_backward_;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  }</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a4df30bbef7db3a6069d4ab3d9238cb40">  174</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;shared_ptr&lt;Blob&lt;Dtype&gt; &gt; &gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a4df30bbef7db3a6069d4ab3d9238cb40">params</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#accf52332675952dd27dfc8d3c27fa583">params_</a>;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; learnable_params()<span class="keyword"> const </span>{</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">return</span> learnable_params_;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  }</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ae902a7a461c0a693ba1f0d4186ef8e42">  181</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;float&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#ae902a7a461c0a693ba1f0d4186ef8e42">params_lr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#aeb1f85c97372f57336e4e1af3eb7b9db">params_lr_</a>; }</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;bool&gt;&amp; has_params_lr()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> has_params_lr_; }</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a1bc1091f0033a8b6c321f1b50c931996">  184</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;float&gt;&amp; <a class="code" href="classcaffe_1_1Net.html#a1bc1091f0033a8b6c321f1b50c931996">params_weight_decay</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#ad337cf5b16e69533f605dbe1f6932bc9">params_weight_decay_</a>;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;bool&gt;&amp; has_params_decay()<span class="keyword"> const </span>{</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">return</span> has_params_decay_;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;  }</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="keyword">const</span> map&lt;string, int&gt;&amp; param_names_index()<span class="keyword"> const </span>{</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">return</span> param_names_index_;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;  }</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;int&gt;&amp; param_owners()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> param_owners_; }</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;string&gt;&amp; param_display_names()<span class="keyword"> const </span>{</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">return</span> param_display_names_;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  }</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a6b04ab79ff08386d5a6fd167fd7696a3">  198</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classcaffe_1_1Net.html#a6b04ab79ff08386d5a6fd167fd7696a3">num_inputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> net_input_blobs_.size(); }</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">int</span> num_outputs()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> net_output_blobs_.size(); }</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; input_blobs()<span class="keyword"> const </span>{</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordflow">return</span> net_input_blobs_;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  }</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;Blob&lt;Dtype&gt;*&gt;&amp; output_blobs()<span class="keyword"> const </span>{</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keywordflow">return</span> net_output_blobs_;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;  }</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;int&gt;&amp; input_blob_indices()<span class="keyword"> const </span>{</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classcaffe_1_1Net.html#a083a9a4c3919721c833b53d5571a7400">net_input_blob_indices_</a>;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;  }</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> vector&lt;int&gt;&amp; output_blob_indices()<span class="keyword"> const </span>{</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordflow">return</span> net_output_blob_indices_;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;  }</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;  <span class="keywordtype">bool</span> has_blob(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; blob_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;  <span class="keyword">const</span> shared_ptr&lt;Blob&lt;Dtype&gt; &gt; blob_by_name(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; blob_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  <span class="keywordtype">bool</span> has_layer(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; layer_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  <span class="keyword">const</span> shared_ptr&lt;Layer&lt;Dtype&gt; &gt; layer_by_name(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; layer_name) <span class="keyword">const</span>;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;  <span class="keywordtype">void</span> set_debug_info(<span class="keyword">const</span> <span class="keywordtype">bool</span> value) { <a class="code" href="classcaffe_1_1Net.html#addc4e5501070ede24155d4c1bf9928a2">debug_info_</a> = value; }</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;  <span class="comment">// Helpers for Init.</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="comment"></span>  <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a4a38a77b5f01ba4754e6007b9f1214f8">FilterNet</a>(<span class="keyword">const</span> NetParameter&amp; param,</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;      NetParameter* param_filtered);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classcaffe_1_1Net.html#a54e8c43fe3a0cd9bbbcfdefd2b1603d2">StateMeetsRule</a>(<span class="keyword">const</span> NetState&amp; state, <span class="keyword">const</span> NetStateRule&amp; rule,</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;      <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; layer_name);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;  <span class="comment">// Invoked at specific points during an iteration</span></div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net_1_1Callback.html">  231</a></span>&#160;  <span class="keyword">class </span><a class="code" href="classcaffe_1_1Net_1_1Callback.html">Callback</a> {</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;   <span class="keyword">protected</span>:</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> run(<span class="keywordtype">int</span> layer) = 0;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classcaffe_1_1Net.html">Net</a>;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  };</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <span class="keyword">const</span> vector&lt;Callback*&gt;&amp; before_forward()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> before_forward_; }</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;  <span class="keywordtype">void</span> add_before_forward(<a class="code" href="classcaffe_1_1Net_1_1Callback.html">Callback</a>* value) {</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    before_forward_.push_back(value);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  }</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  <span class="keyword">const</span> vector&lt;Callback*&gt;&amp; after_forward()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> after_forward_; }</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;  <span class="keywordtype">void</span> add_after_forward(<a class="code" href="classcaffe_1_1Net_1_1Callback.html">Callback</a>* value) {</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    after_forward_.push_back(value);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  <span class="keyword">const</span> vector&lt;Callback*&gt;&amp; before_backward()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> before_backward_; }</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keywordtype">void</span> add_before_backward(<a class="code" href="classcaffe_1_1Net_1_1Callback.html">Callback</a>* value) {</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    before_backward_.push_back(value);</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  }</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;  <span class="keyword">const</span> vector&lt;Callback*&gt;&amp; after_backward()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> after_backward_; }</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;  <span class="keywordtype">void</span> add_after_backward(<a class="code" href="classcaffe_1_1Net_1_1Callback.html">Callback</a>* value) {</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    after_backward_.push_back(value);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;  }</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;  <span class="comment">// Helpers for Init.</span></div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a3aab736bc72b29c84dc3ee765ee453c4">AppendTop</a>(<span class="keyword">const</span> NetParameter&amp; param, <span class="keyword">const</span> <span class="keywordtype">int</span> layer_id,</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                 <span class="keyword">const</span> <span class="keywordtype">int</span> top_id, set&lt;string&gt;* available_blobs,</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                 map&lt;string, int&gt;* blob_name_to_idx);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classcaffe_1_1Net.html#a6ef3482f4e882e437c81affa77d91f32">AppendBottom</a>(<span class="keyword">const</span> NetParameter&amp; param, <span class="keyword">const</span> <span class="keywordtype">int</span> layer_id,</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                   <span class="keyword">const</span> <span class="keywordtype">int</span> bottom_id, set&lt;string&gt;* available_blobs,</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                   map&lt;string, int&gt;* blob_name_to_idx);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a1fce7e829c10750543f3a79819d49393">AppendParam</a>(<span class="keyword">const</span> NetParameter&amp; param, <span class="keyword">const</span> <span class="keywordtype">int</span> layer_id,</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                   <span class="keyword">const</span> <span class="keywordtype">int</span> param_id);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a3751d6095c3d4f4384c52ad80bbd0d88">ForwardDebugInfo</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> layer_id);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a0ddec52928f0488e1b1136a0d72db0a1">BackwardDebugInfo</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> layer_id);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classcaffe_1_1Net.html#a93a439c92c9218f1dfff16f76d617faa">UpdateDebugInfo</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> param_id);</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#aef7021f31e355ab8f8991755125f6b2b">  277</a></span>&#160;  <span class="keywordtype">string</span> <a class="code" href="classcaffe_1_1Net.html#aef7021f31e355ab8f8991755125f6b2b">name_</a>;</div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a1fe921a602b4f96602702a13ad605693">  279</a></span>&#160;  Phase <a class="code" href="classcaffe_1_1Net.html#a1fe921a602b4f96602702a13ad605693">phase_</a>;</div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ab9e30392aa01dcf182d1a5cbd34ec45e">  281</a></span>&#160;  vector&lt;shared_ptr&lt;Layer&lt;Dtype&gt; &gt; &gt; <a class="code" href="classcaffe_1_1Net.html#ab9e30392aa01dcf182d1a5cbd34ec45e">layers_</a>;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;  vector&lt;string&gt; layer_names_;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;  map&lt;string, int&gt; layer_names_index_;</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;  vector&lt;bool&gt; layer_need_backward_;</div><div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ab033c0574fcbf1e67e22b9682677c64d">  286</a></span>&#160;  vector&lt;shared_ptr&lt;Blob&lt;Dtype&gt; &gt; &gt; <a class="code" href="classcaffe_1_1Net.html#ab033c0574fcbf1e67e22b9682677c64d">blobs_</a>;</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;  vector&lt;string&gt; blob_names_;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;  map&lt;string, int&gt; blob_names_index_;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;  vector&lt;bool&gt; blob_need_backward_;</div><div class="line"><a name="l00293"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ac5bf2007047f749d9d111b0dfa220afc">  293</a></span>&#160;  vector&lt;vector&lt;Blob&lt;Dtype&gt;*&gt; &gt; <a class="code" href="classcaffe_1_1Net.html#ac5bf2007047f749d9d111b0dfa220afc">bottom_vecs_</a>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;  vector&lt;vector&lt;int&gt; &gt; bottom_id_vecs_;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;  vector&lt;vector&lt;bool&gt; &gt; bottom_need_backward_;</div><div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#aa834096a02382d9a881bf33694e72564">  297</a></span>&#160;  vector&lt;vector&lt;Blob&lt;Dtype&gt;*&gt; &gt; <a class="code" href="classcaffe_1_1Net.html#aa834096a02382d9a881bf33694e72564">top_vecs_</a>;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  vector&lt;vector&lt;int&gt; &gt; top_id_vecs_;</div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a3eef6ff47640210c6d8d6affb1fd86f8">  301</a></span>&#160;  vector&lt;Dtype&gt; <a class="code" href="classcaffe_1_1Net.html#a3eef6ff47640210c6d8d6affb1fd86f8">blob_loss_weights_</a>;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;  vector&lt;vector&lt;int&gt; &gt; param_id_vecs_;</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;  vector&lt;int&gt; param_owners_;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  vector&lt;string&gt; param_display_names_;</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  vector&lt;pair&lt;int, int&gt; &gt; param_layer_indices_;</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;  map&lt;string, int&gt; param_names_index_;</div><div class="line"><a name="l00308"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a083a9a4c3919721c833b53d5571a7400">  308</a></span>&#160;  vector&lt;int&gt; <a class="code" href="classcaffe_1_1Net.html#a083a9a4c3919721c833b53d5571a7400">net_input_blob_indices_</a>;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  vector&lt;int&gt; net_output_blob_indices_;</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;  vector&lt;Blob&lt;Dtype&gt;*&gt; net_input_blobs_;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  vector&lt;Blob&lt;Dtype&gt;*&gt; net_output_blobs_;</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#accf52332675952dd27dfc8d3c27fa583">  313</a></span>&#160;  vector&lt;shared_ptr&lt;Blob&lt;Dtype&gt; &gt; &gt; <a class="code" href="classcaffe_1_1Net.html#accf52332675952dd27dfc8d3c27fa583">params_</a>;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  vector&lt;Blob&lt;Dtype&gt;*&gt; learnable_params_;</div><div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#adf8dfb59e46d62c9333f322cea631bd8">  322</a></span>&#160;  vector&lt;int&gt; <a class="code" href="classcaffe_1_1Net.html#adf8dfb59e46d62c9333f322cea631bd8">learnable_param_ids_</a>;</div><div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#aeb1f85c97372f57336e4e1af3eb7b9db">  324</a></span>&#160;  vector&lt;float&gt; <a class="code" href="classcaffe_1_1Net.html#aeb1f85c97372f57336e4e1af3eb7b9db">params_lr_</a>;</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;  vector&lt;bool&gt; has_params_lr_;</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#ad337cf5b16e69533f605dbe1f6932bc9">  327</a></span>&#160;  vector&lt;float&gt; <a class="code" href="classcaffe_1_1Net.html#ad337cf5b16e69533f605dbe1f6932bc9">params_weight_decay_</a>;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;  vector&lt;bool&gt; has_params_decay_;</div><div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#a84349f399faa4246f8395e63c9334d56">  330</a></span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classcaffe_1_1Net.html#a84349f399faa4246f8395e63c9334d56">memory_used_</a>;</div><div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="classcaffe_1_1Net.html#addc4e5501070ede24155d4c1bf9928a2">  332</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classcaffe_1_1Net.html#addc4e5501070ede24155d4c1bf9928a2">debug_info_</a>;</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  <span class="comment">// Callbacks</span></div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  vector&lt;Callback*&gt; before_forward_;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;  vector&lt;Callback*&gt; after_forward_;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;  vector&lt;Callback*&gt; before_backward_;</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;  vector&lt;Callback*&gt; after_backward_;</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;DISABLE_COPY_AND_ASSIGN(<a class="code" href="classcaffe_1_1Net.html">Net</a>);</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;};</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;}  <span class="comment">// namespace caffe</span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="preprocessor">#endif  // CAFFE_NET_HPP_</span></div><div class="ttc" id="classcaffe_1_1Net_html_a3aab736bc72b29c84dc3ee765ee453c4"><div class="ttname"><a href="classcaffe_1_1Net.html#a3aab736bc72b29c84dc3ee765ee453c4">caffe::Net::AppendTop</a></div><div class="ttdeci">void AppendTop(const NetParameter &amp;param, const int layer_id, const int top_id, set&lt; string &gt; *available_blobs, map&lt; string, int &gt; *blob_name_to_idx)</div><div class="ttdoc">Append a new top blob to the net. </div><div class="ttdef"><b>Definition:</b> net.cpp:356</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a12f8c6cf9f453cdbc9fa8149986303c6"><div class="ttname"><a href="classcaffe_1_1Net.html#a12f8c6cf9f453cdbc9fa8149986303c6">caffe::Net::ForwardPrefilled</a></div><div class="ttdeci">const vector&lt; Blob&lt; Dtype &gt; * &gt; &amp; ForwardPrefilled(Dtype *loss=NULL)</div><div class="ttdoc">DEPRECATED; use Forward() instead. </div><div class="ttdef"><b>Definition:</b> net.hpp:40</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ab9e30392aa01dcf182d1a5cbd34ec45e"><div class="ttname"><a href="classcaffe_1_1Net.html#ab9e30392aa01dcf182d1a5cbd34ec45e">caffe::Net::layers_</a></div><div class="ttdeci">vector&lt; shared_ptr&lt; Layer&lt; Dtype &gt; &gt; &gt; layers_</div><div class="ttdoc">Individual layers in the net. </div><div class="ttdef"><b>Definition:</b> net.hpp:281</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a6b04ab79ff08386d5a6fd167fd7696a3"><div class="ttname"><a href="classcaffe_1_1Net.html#a6b04ab79ff08386d5a6fd167fd7696a3">caffe::Net::num_inputs</a></div><div class="ttdeci">int num_inputs() const</div><div class="ttdoc">Input and output blob numbers. </div><div class="ttdef"><b>Definition:</b> net.hpp:198</div></div>
<div class="ttc" id="namespacecaffe_html"><div class="ttname"><a href="namespacecaffe.html">caffe</a></div><div class="ttdoc">A layer factory that allows one to register layers. During runtime, registered layers can be called b...</div><div class="ttdef"><b>Definition:</b> blob.hpp:14</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_aeaf1e942f1552b9c48bd9e834ede20e6"><div class="ttname"><a href="classcaffe_1_1Net.html#aeaf1e942f1552b9c48bd9e834ede20e6">caffe::Net::blob_names</a></div><div class="ttdeci">const vector&lt; string &gt; &amp; blob_names() const</div><div class="ttdoc">returns the blob names </div><div class="ttdef"><b>Definition:</b> net.hpp:127</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a3eef6ff47640210c6d8d6affb1fd86f8"><div class="ttname"><a href="classcaffe_1_1Net.html#a3eef6ff47640210c6d8d6affb1fd86f8">caffe::Net::blob_loss_weights_</a></div><div class="ttdeci">vector&lt; Dtype &gt; blob_loss_weights_</div><div class="ttdef"><b>Definition:</b> net.hpp:301</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a1fce7e829c10750543f3a79819d49393"><div class="ttname"><a href="classcaffe_1_1Net.html#a1fce7e829c10750543f3a79819d49393">caffe::Net::AppendParam</a></div><div class="ttdeci">void AppendParam(const NetParameter &amp;param, const int layer_id, const int param_id)</div><div class="ttdoc">Append a new parameter blob to the net. </div><div class="ttdef"><b>Definition:</b> net.cpp:421</div></div>
<div class="ttc" id="classcaffe_1_1Net_1_1Callback_html"><div class="ttname"><a href="classcaffe_1_1Net_1_1Callback.html">caffe::Net::Callback</a></div><div class="ttdef"><b>Definition:</b> net.hpp:231</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a93a439c92c9218f1dfff16f76d617faa"><div class="ttname"><a href="classcaffe_1_1Net.html#a93a439c92c9218f1dfff16f76d617faa">caffe::Net::UpdateDebugInfo</a></div><div class="ttdeci">void UpdateDebugInfo(const int param_id)</div><div class="ttdoc">Helper for displaying debug info in Update. </div><div class="ttdef"><b>Definition:</b> net.cpp:639</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a8417af82aa83be45d39aab735bdead1d"><div class="ttname"><a href="classcaffe_1_1Net.html#a8417af82aa83be45d39aab735bdead1d">caffe::Net::Reshape</a></div><div class="ttdeci">void Reshape()</div><div class="ttdoc">Reshape all layers from bottom to top. </div><div class="ttdef"><b>Definition:</b> net.cpp:726</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ae5354c03371d4cb7b18988561790e676"><div class="ttname"><a href="classcaffe_1_1Net.html#ae5354c03371d4cb7b18988561790e676">caffe::Net::ForwardFromTo</a></div><div class="ttdeci">Dtype ForwardFromTo(int start, int end)</div><div class="ttdef"><b>Definition:</b> net.cpp:516</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a174e8bb96b67f423f8c405dac2334a5a"><div class="ttname"><a href="classcaffe_1_1Net.html#a174e8bb96b67f423f8c405dac2334a5a">caffe::Net::layers</a></div><div class="ttdeci">const vector&lt; shared_ptr&lt; Layer&lt; Dtype &gt; &gt; &gt; &amp; layers() const</div><div class="ttdoc">returns the layers </div><div class="ttdef"><b>Definition:</b> net.hpp:133</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a84349f399faa4246f8395e63c9334d56"><div class="ttname"><a href="classcaffe_1_1Net.html#a84349f399faa4246f8395e63c9334d56">caffe::Net::memory_used_</a></div><div class="ttdeci">size_t memory_used_</div><div class="ttdoc">The bytes of memory used by this net. </div><div class="ttdef"><b>Definition:</b> net.hpp:330</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a8a2544cefc59d6cbe1bf634f5d5be1c5"><div class="ttname"><a href="classcaffe_1_1Net.html#a8a2544cefc59d6cbe1bf634f5d5be1c5">caffe::Net::Update</a></div><div class="ttdeci">void Update()</div><div class="ttdoc">Updates the network weights based on the diff values computed. </div><div class="ttdef"><b>Definition:</b> net.cpp:907</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_addc4e5501070ede24155d4c1bf9928a2"><div class="ttname"><a href="classcaffe_1_1Net.html#addc4e5501070ede24155d4c1bf9928a2">caffe::Net::debug_info_</a></div><div class="ttdeci">bool debug_info_</div><div class="ttdoc">Whether to compute and display debug info for the net. </div><div class="ttdef"><b>Definition:</b> net.hpp:332</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ab64573aa9187fb7540825d9338807a79"><div class="ttname"><a href="classcaffe_1_1Net.html#ab64573aa9187fb7540825d9338807a79">caffe::Net::blobs</a></div><div class="ttdeci">const vector&lt; shared_ptr&lt; Blob&lt; Dtype &gt; &gt; &gt; &amp; blobs() const</div><div class="ttdoc">returns the blobs </div><div class="ttdef"><b>Definition:</b> net.hpp:129</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_aa834096a02382d9a881bf33694e72564"><div class="ttname"><a href="classcaffe_1_1Net.html#aa834096a02382d9a881bf33694e72564">caffe::Net::top_vecs_</a></div><div class="ttdeci">vector&lt; vector&lt; Blob&lt; Dtype &gt; * &gt; &gt; top_vecs_</div><div class="ttdoc">top_vecs stores the vectors containing the output for each layer </div><div class="ttdef"><b>Definition:</b> net.hpp:297</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a521c084f91eefc041bd53f30f1cc1097"><div class="ttname"><a href="classcaffe_1_1Net.html#a521c084f91eefc041bd53f30f1cc1097">caffe::Net::name</a></div><div class="ttdeci">const string &amp; name() const</div><div class="ttdoc">returns the network name. </div><div class="ttdef"><b>Definition:</b> net.hpp:123</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a3d251c397f812a6d8e162db3a82bb198"><div class="ttname"><a href="classcaffe_1_1Net.html#a3d251c397f812a6d8e162db3a82bb198">caffe::Net::ClearParamDiffs</a></div><div class="ttdeci">void ClearParamDiffs()</div><div class="ttdoc">Zeroes out the diffs of all net parameters. Should be run before Backward. </div><div class="ttdef"><b>Definition:</b> net.cpp:914</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a0ddec52928f0488e1b1136a0d72db0a1"><div class="ttname"><a href="classcaffe_1_1Net.html#a0ddec52928f0488e1b1136a0d72db0a1">caffe::Net::BackwardDebugInfo</a></div><div class="ttdeci">void BackwardDebugInfo(const int layer_id)</div><div class="ttdoc">Helper for displaying debug info in Backward. </div><div class="ttdef"><b>Definition:</b> net.cpp:612</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a4850fdb3eea1b04c97642546c0dcccf7"><div class="ttname"><a href="classcaffe_1_1Net.html#a4850fdb3eea1b04c97642546c0dcccf7">caffe::Net::ShareWeights</a></div><div class="ttdeci">void ShareWeights()</div><div class="ttdoc">Shares weight data of owner blobs with shared blobs. </div><div class="ttdef"><b>Definition:</b> net.cpp:935</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ae9fcfaabc89165d6c0cb4b14b4c6b584"><div class="ttname"><a href="classcaffe_1_1Net.html#ae9fcfaabc89165d6c0cb4b14b4c6b584">caffe::Net::Init</a></div><div class="ttdeci">void Init(const NetParameter &amp;param)</div><div class="ttdoc">Initialize a network with a NetParameter. </div><div class="ttdef"><b>Definition:</b> net.cpp:44</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a7a1a6d17347106dd1284b1b6d28cb4e9"><div class="ttname"><a href="classcaffe_1_1Net.html#a7a1a6d17347106dd1284b1b6d28cb4e9">caffe::Net::Backward</a></div><div class="ttdeci">void Backward()</div><div class="ttdef"><b>Definition:</b> net.cpp:707</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ad9aace0b6b268d391101f0ce31be9fd1"><div class="ttname"><a href="classcaffe_1_1Net.html#ad9aace0b6b268d391101f0ce31be9fd1">caffe::Net::top_vecs</a></div><div class="ttdeci">const vector&lt; vector&lt; Blob&lt; Dtype &gt; * &gt; &gt; &amp; top_vecs() const</div><div class="ttdoc">returns the top vecs for each layer – usually you won&amp;#39;t need this unless you do per-layer checks suc...</div><div class="ttdef"><b>Definition:</b> net.hpp:149</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a3661ca5f30bf8e731cb54cfc3c320023"><div class="ttname"><a href="classcaffe_1_1Net.html#a3661ca5f30bf8e731cb54cfc3c320023">caffe::Net::ShareTrainedLayersWith</a></div><div class="ttdeci">void ShareTrainedLayersWith(const Net *other)</div><div class="ttdoc">For an already initialized net, implicitly copies (i.e., using no additional memory) the pre-trained ...</div><div class="ttdef"><b>Definition:</b> net.cpp:665</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a6ef3482f4e882e437c81affa77d91f32"><div class="ttname"><a href="classcaffe_1_1Net.html#a6ef3482f4e882e437c81affa77d91f32">caffe::Net::AppendBottom</a></div><div class="ttdeci">int AppendBottom(const NetParameter &amp;param, const int layer_id, const int bottom_id, set&lt; string &gt; *available_blobs, map&lt; string, int &gt; *blob_name_to_idx)</div><div class="ttdoc">Append a new bottom blob to the net. </div><div class="ttdef"><b>Definition:</b> net.cpp:396</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a1bc1091f0033a8b6c321f1b50c931996"><div class="ttname"><a href="classcaffe_1_1Net.html#a1bc1091f0033a8b6c321f1b50c931996">caffe::Net::params_weight_decay</a></div><div class="ttdeci">const vector&lt; float &gt; &amp; params_weight_decay() const</div><div class="ttdoc">returns the learnable parameter decay multipliers </div><div class="ttdef"><b>Definition:</b> net.hpp:184</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ad337cf5b16e69533f605dbe1f6932bc9"><div class="ttname"><a href="classcaffe_1_1Net.html#ad337cf5b16e69533f605dbe1f6932bc9">caffe::Net::params_weight_decay_</a></div><div class="ttdeci">vector&lt; float &gt; params_weight_decay_</div><div class="ttdoc">the weight decay multipliers for learnable_params_ </div><div class="ttdef"><b>Definition:</b> net.hpp:327</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a4a38a77b5f01ba4754e6007b9f1214f8"><div class="ttname"><a href="classcaffe_1_1Net.html#a4a38a77b5f01ba4754e6007b9f1214f8">caffe::Net::FilterNet</a></div><div class="ttdeci">static void FilterNet(const NetParameter &amp;param, NetParameter *param_filtered)</div><div class="ttdoc">Remove layers that the user specified should be excluded given the current phase, level...</div><div class="ttdef"><b>Definition:</b> net.cpp:259</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a8e42b5eba7886385d2d4b6f457314968"><div class="ttname"><a href="classcaffe_1_1Net.html#a8e42b5eba7886385d2d4b6f457314968">caffe::Net::top_ids</a></div><div class="ttdeci">const vector&lt; int &gt; &amp; top_ids(int i) const</div><div class="ttdoc">returns the ids of the top blobs of layer i </div><div class="ttdef"><b>Definition:</b> net.hpp:153</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a7ccd2bf8a1684171b7d7603cf20c0251"><div class="ttname"><a href="classcaffe_1_1Net.html#a7ccd2bf8a1684171b7d7603cf20c0251">caffe::Net::bottom_ids</a></div><div class="ttdeci">const vector&lt; int &gt; &amp; bottom_ids(int i) const</div><div class="ttdoc">returns the ids of the bottom blobs of layer i </div><div class="ttdef"><b>Definition:</b> net.hpp:159</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a6ce42e3be6f7b495fe2fea85db2e99f8"><div class="ttname"><a href="classcaffe_1_1Net.html#a6ce42e3be6f7b495fe2fea85db2e99f8">caffe::Net::ToProto</a></div><div class="ttdeci">void ToProto(NetParameter *param, bool write_diff=false) const</div><div class="ttdoc">Writes the net to a proto. </div><div class="ttdef"><b>Definition:</b> net.cpp:838</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ad3ac317bbc872bc6ed48d19f4d986ecc"><div class="ttname"><a href="classcaffe_1_1Net.html#ad3ac317bbc872bc6ed48d19f4d986ecc">caffe::Net::ToHDF5</a></div><div class="ttdeci">void ToHDF5(const string &amp;filename, bool write_diff=false) const</div><div class="ttdoc">Writes the net to an HDF5 file. </div><div class="ttdef"><b>Definition:</b> net.cpp:850</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_adf8dfb59e46d62c9333f322cea631bd8"><div class="ttname"><a href="classcaffe_1_1Net.html#adf8dfb59e46d62c9333f322cea631bd8">caffe::Net::learnable_param_ids_</a></div><div class="ttdeci">vector&lt; int &gt; learnable_param_ids_</div><div class="ttdef"><b>Definition:</b> net.hpp:322</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_accf52332675952dd27dfc8d3c27fa583"><div class="ttname"><a href="classcaffe_1_1Net.html#accf52332675952dd27dfc8d3c27fa583">caffe::Net::params_</a></div><div class="ttdeci">vector&lt; shared_ptr&lt; Blob&lt; Dtype &gt; &gt; &gt; params_</div><div class="ttdoc">The parameters in the network. </div><div class="ttdef"><b>Definition:</b> net.hpp:313</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a1fe921a602b4f96602702a13ad605693"><div class="ttname"><a href="classcaffe_1_1Net.html#a1fe921a602b4f96602702a13ad605693">caffe::Net::phase_</a></div><div class="ttdeci">Phase phase_</div><div class="ttdoc">The phase: TRAIN or TEST. </div><div class="ttdef"><b>Definition:</b> net.hpp:279</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a4ac2b69748470f54d530bc5dfa05b9c3"><div class="ttname"><a href="classcaffe_1_1Net.html#a4ac2b69748470f54d530bc5dfa05b9c3">caffe::Net::CopyTrainedLayersFrom</a></div><div class="ttdeci">void CopyTrainedLayersFrom(const NetParameter &amp;param)</div><div class="ttdoc">For an already initialized net, copies the pre-trained layers from another Net. </div><div class="ttdef"><b>Definition:</b> net.cpp:733</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a54e8c43fe3a0cd9bbbcfdefd2b1603d2"><div class="ttname"><a href="classcaffe_1_1Net.html#a54e8c43fe3a0cd9bbbcfdefd2b1603d2">caffe::Net::StateMeetsRule</a></div><div class="ttdeci">static bool StateMeetsRule(const NetState &amp;state, const NetStateRule &amp;rule, const string &amp;layer_name)</div><div class="ttdoc">return whether NetState state meets NetStateRule rule </div><div class="ttdef"><b>Definition:</b> net.cpp:289</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a6f6cf9d40637f7576828d856bb1b1826"><div class="ttname"><a href="classcaffe_1_1Net.html#a6f6cf9d40637f7576828d856bb1b1826">caffe::Net::Forward</a></div><div class="ttdeci">const vector&lt; Blob&lt; Dtype &gt; * &gt; &amp; Forward(Dtype *loss=NULL)</div><div class="ttdoc">Run Forward and return the result. </div><div class="ttdef"><b>Definition:</b> net.cpp:545</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a4df30bbef7db3a6069d4ab3d9238cb40"><div class="ttname"><a href="classcaffe_1_1Net.html#a4df30bbef7db3a6069d4ab3d9238cb40">caffe::Net::params</a></div><div class="ttdeci">const vector&lt; shared_ptr&lt; Blob&lt; Dtype &gt; &gt; &gt; &amp; params() const</div><div class="ttdoc">returns the parameters </div><div class="ttdef"><b>Definition:</b> net.hpp:174</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a3751d6095c3d4f4384c52ad80bbd0d88"><div class="ttname"><a href="classcaffe_1_1Net.html#a3751d6095c3d4f4384c52ad80bbd0d88">caffe::Net::ForwardDebugInfo</a></div><div class="ttdeci">void ForwardDebugInfo(const int layer_id)</div><div class="ttdoc">Helper for displaying debug info in Forward. </div><div class="ttdef"><b>Definition:</b> net.cpp:586</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_aeb1f85c97372f57336e4e1af3eb7b9db"><div class="ttname"><a href="classcaffe_1_1Net.html#aeb1f85c97372f57336e4e1af3eb7b9db">caffe::Net::params_lr_</a></div><div class="ttdeci">vector&lt; float &gt; params_lr_</div><div class="ttdoc">the learning rate multipliers for learnable_params_ </div><div class="ttdef"><b>Definition:</b> net.hpp:324</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a083a9a4c3919721c833b53d5571a7400"><div class="ttname"><a href="classcaffe_1_1Net.html#a083a9a4c3919721c833b53d5571a7400">caffe::Net::net_input_blob_indices_</a></div><div class="ttdeci">vector&lt; int &gt; net_input_blob_indices_</div><div class="ttdoc">blob indices for the input and the output of the net </div><div class="ttdef"><b>Definition:</b> net.hpp:308</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_aa550ba424fc7b90f2ccbbaa175c1ec18"><div class="ttname"><a href="classcaffe_1_1Net.html#aa550ba424fc7b90f2ccbbaa175c1ec18">caffe::Net::layer_names</a></div><div class="ttdeci">const vector&lt; string &gt; &amp; layer_names() const</div><div class="ttdoc">returns the layer names </div><div class="ttdef"><b>Definition:</b> net.hpp:125</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ae902a7a461c0a693ba1f0d4186ef8e42"><div class="ttname"><a href="classcaffe_1_1Net.html#ae902a7a461c0a693ba1f0d4186ef8e42">caffe::Net::params_lr</a></div><div class="ttdeci">const vector&lt; float &gt; &amp; params_lr() const</div><div class="ttdoc">returns the learnable parameter learning rate multipliers </div><div class="ttdef"><b>Definition:</b> net.hpp:181</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a9418aee447ff6e847fd1a5e7be3d7a44"><div class="ttname"><a href="classcaffe_1_1Net.html#a9418aee447ff6e847fd1a5e7be3d7a44">caffe::Net::phase</a></div><div class="ttdeci">Phase phase() const</div><div class="ttdoc">returns the phase: TRAIN or TEST </div><div class="ttdef"><b>Definition:</b> net.hpp:137</div></div>
<div class="ttc" id="classcaffe_1_1Net_html"><div class="ttname"><a href="classcaffe_1_1Net.html">caffe::Net</a></div><div class="ttdoc">Connects Layers together into a directed acyclic graph (DAG) specified by a NetParameter. </div><div class="ttdef"><b>Definition:</b> net.hpp:24</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ab033c0574fcbf1e67e22b9682677c64d"><div class="ttname"><a href="classcaffe_1_1Net.html#ab033c0574fcbf1e67e22b9682677c64d">caffe::Net::blobs_</a></div><div class="ttdeci">vector&lt; shared_ptr&lt; Blob&lt; Dtype &gt; &gt; &gt; blobs_</div><div class="ttdoc">the blobs storing intermediate results between the layer. </div><div class="ttdef"><b>Definition:</b> net.hpp:286</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_ac5bf2007047f749d9d111b0dfa220afc"><div class="ttname"><a href="classcaffe_1_1Net.html#ac5bf2007047f749d9d111b0dfa220afc">caffe::Net::bottom_vecs_</a></div><div class="ttdeci">vector&lt; vector&lt; Blob&lt; Dtype &gt; * &gt; &gt; bottom_vecs_</div><div class="ttdef"><b>Definition:</b> net.hpp:293</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_a25c25c31ddf7a78c7dfded318798764c"><div class="ttname"><a href="classcaffe_1_1Net.html#a25c25c31ddf7a78c7dfded318798764c">caffe::Net::bottom_vecs</a></div><div class="ttdeci">const vector&lt; vector&lt; Blob&lt; Dtype &gt; * &gt; &gt; &amp; bottom_vecs() const</div><div class="ttdoc">returns the bottom vecs for each layer – usually you won&amp;#39;t need this unless you do per-layer checks ...</div><div class="ttdef"><b>Definition:</b> net.hpp:142</div></div>
<div class="ttc" id="classcaffe_1_1Net_html_aef7021f31e355ab8f8991755125f6b2b"><div class="ttname"><a href="classcaffe_1_1Net.html#aef7021f31e355ab8f8991755125f6b2b">caffe::Net::name_</a></div><div class="ttdeci">string name_</div><div class="ttdoc">The network name. </div><div class="ttdef"><b>Definition:</b> net.hpp:277</div></div>
<div class="ttc" id="classcaffe_1_1Blob_html"><div class="ttname"><a href="classcaffe_1_1Blob.html">caffe::Blob</a></div><div class="ttdoc">A wrapper around SyncedMemory holders serving as the basic computational unit through which Layers...</div><div class="ttdef"><b>Definition:</b> blob.hpp:24</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 3 2017 23:11:19 for Caffe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
